package com.stt.experiment.zjx.gate.server.buffer;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * 缓冲类
 *
 * @author yjy
 * 2018-05-19 20:10
 */
@Getter
@Setter
@ToString
public abstract class AbstractBuffer implements Serializable {

    private static final long serialVersionUID = 853280021376374914L;
    protected String module; // 模块
    protected String cmd; // 命令

    /**
     * 格式化为json字符串
     * @return json串
     */
    public abstract String toJsonString();

}
